package com.example.vo.process.com;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 流程实例
 *
 * @author wsl
 */
@Data
@Accessors(chain = true)
public class ProInst {

    @ApiModelProperty("流程实例编号")
    private String processInstanceId;

    @ApiModelProperty("流程定义名称")
    private String processDefinitionName;

    @ApiModelProperty("是否结束")
    private Boolean isEnd;

    @ApiModelProperty("是否挂起")
    private Boolean isSuspend;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date endTime;

    @ApiModelProperty("流程节点信息")
    private List<ProNode> proNodeList;

    @ApiModelProperty("当前节点信息")
    private ProNode proNode;

    @ApiModelProperty("流程发起人编号")
    private String startUserId;

    @ApiModelProperty("流程发起人姓名")
    private String startUser;

    @ApiModelProperty("流程参数")
    private Map<String,Object> variables;
}
